long fun_a(unsigned long x)
{
	long val = 0;
	while (x) {
		val ^= x;
		x >>= 1;
	}
	return val & 1;
}
